package com.ruoyi.common.core.domain.padType;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.domain.entity.SysDept;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.ArrayList;
import java.util.List;

/**
 * 仪器树形类型分类对象 pad_types
 * 
 * @author ruoyi
 * @date 2023-10-13
 */
public class PadTypes extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 平板类型id */
    private Long id;

    /** 父级id */
    @Excel(name = "父级id")
    private Long pid;

    /** 类型名称 */
    @Excel(name = "类型名称")
    private String name;

    /** 排序 */
    @Excel(name = "排序")
    private Long sorts;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 字典值 */
    private String dictName;
    /** 字典值 */
    private List<String> dictNameList;

    /** 递归子集 */
    private List<PadTypes> children  = new ArrayList<PadTypes>();;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSorts(Long sorts) 
    {
        this.sorts = sorts;
    }

    public Long getSorts() 
    {
        return sorts;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public List<PadTypes> getChildren() {
        return children;
    }

    public void setChildren(List<PadTypes> children) {
        this.children = children;
    }

    public String getDictName() {
        return dictName;
    }

    public void setDictName(String dictName) {
        this.dictName = dictName;
    }

    public List<String> getDictNameList() {
        return dictNameList;
    }

    public void setDictNameList(List<String> dictNameList) {
        this.dictNameList = dictNameList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pid", getPid())
            .append("name", getName())
            .append("sorts", getSorts())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
